home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Network Support Library
/
RoseWare - Network Support Library.iso
/
apidev
/
sc3x04.exe
/
CONNOPEN.DOC
< prev
next >
Wrap
Text File
|
1992-10-09
|
3KB
|
70 lines
Get Connections Open Files
This call returns information about the files currently open by
the specified connection number. The call should be made itera-
tively.
WARNING: Using a connection number larger than the maximum number
of connections supported by the server has been known to
cause ABENDS.
Function 23 (17h)
Request Buffer
OfFset Request Packet Contents Bytes Remarks
------ --------------------------- ----- -------
0 Sub-function Structure Len 2 Length
2 235 (EBh) 1
3 Connection Number 2
5 Last Record Seen 2
Reply Buffer
Offset Request Packet Contents Bytes Remarks
------ --------------------------- ----- -------
0 Next Request Record 2
2 Number Returned 2 Max 28
4 Task Number 1 2
6 Lock Type 1 1 Following repeats
7 Access Control 1 1 number returned
8 Lock Flag 1 1 times.
9 Volume Number 1 1
10 Parent Dir. Entry Number 1 4
14 Dir Entry Number 1 4
18 Reserved 1 1
19 Data Stream Type 1 1
20 File Name Length 1 1
21 File Name 1 12 Max 12
. . .
. . .
. Task Number n 2
. Lock Type n 1
. Access Control n 1
. Lock Flag n 1
. Volume Number n 1
. Parent Dir. Entry Number n 4
. Dir Entry Number n 4
. Reserved n 1
. Data Stream Type n 1
. File Name Length n 1
. File Name n 12 Max 12
. . .
LastRecordSeen should be set to zero on the first call to this
function. LastRecordSeen should be incremented by numberReturned
on subsequent calls.
ReplyBuffer values are as documented in the NetWare System Calls -
DOS, version 1.00. The only exception is the Data Stream Type, which
is the name space of the affected file.
A call to GetPathNameOfAVolumeDirectoryPair is required to get the
the full path for the open files. This path is obtained by com-
bining the VolumeNumber and the DirectoryEntryNumber (sequence).